package xyz.erupt.flow.core.engine.formItems.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import xyz.erupt.flow.core.engine.enums.FORM_ITEM_TYPE;

import java.util.HashMap;
import java.util.Map;

/**
 * formItem返回数据
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class FormItemFieldVo {
    private String id;
    private String label;
    private FORM_ITEM_TYPE type;
    private String defaultValue;
    /**
     * 枚举类型附加属性，不是必填(key:id,value:name)
     */
    private Map<String,String> enumValues = new HashMap<>();
}
